<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@include file="../commons/commons.jsp"%>
<!DOCTYPE html>
	<head>
		<meta charset="utf-8" />
		<title>后台</title>
		<script src="${ctx }/static/js/crud.js"></script>
	</head>

	<body>
	<form action="${ctx }/shownanny/list.do" id="submit-form">
	<div class="page-body">
		<div class="row">
			<div class="col-xs-12 col-md-12">
				<div class="widget">
					<div class="widget-header ">
						<span class="widget-caption">优秀保姆展示管理</span>
					</div>
						<table class="table table-striped table-bordered table-hover"
							id="simpledatatable" style="text-align:center;">
							<thead>
								<tr>
									<th>序号</th>
									<th>称呼</th>
									<th>保姆图片</th>
									<th>文字描述</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								 <c:forEach items="${pagination.rows }" var="item" varStatus="status">
								 	<c:set value="${ fn:split(item.imgDescribe, '#') }" var="splitstr"/>
                                      <tr>
                                          <td>${status.count}</td>
                                          <td>${splitstr[0]}</td>
                                          <td><img src="${item.imgUrl }" style="width:100px;height:100px" /></td>
                                          <c:forEach items="${personImglist}" var="personitem">
                                          	<c:if test="${personitem.foreignKey==item.id}">
                                          		<td><img src="${personitem.imgUrl }" style="width:70px;height:100px" /></td>
                                          	</c:if>
                                          </c:forEach>
                                          <td>${splitstr[1]}</td>
                                      	  <td>
                                       	     <a href="${ctx }/shownanny/edit.do?frontImgid=${item.id}" class="btn btn-info btn-xs edit" onclick=""><i class="fa fa-edit"></i>编辑</a>
                                          </td>
                                      </tr>
                                </c:forEach>
							</tbody>
						</table>
						<%@include file="../commons/page.jsp"%>
					</div>
				</div>
			</div>
		</div>
	</form>
</body>
</html>